package test_11_23;

public class test11_23_4 {
    public static int add(int x1,int x2)
    {
        return x1+x2;
    }
    public static int add(int x1,int x2,int x3)
    {
        return x1+x2+x3;
    }

    public static void main(String[] args) {
        int result1 = add(2,3);
        int result2 = add(3,5,8);
        System.out.println("两个数相加的结果为:"+result1);
        System.out.println("三个数相加的结果为:"+result2);
    }
}
